package com.wxd.modules.common.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wxd.modules.common.dao.GenderDao;
import com.wxd.modules.common.entity.Gender;
import com.wxd.modules.common.service.GenderService;
import org.springframework.stereotype.Service;

@Service("genderService")
public class GenderServiceImpl extends ServiceImpl<GenderDao, Gender> implements GenderService {


    @Override
    public Gender queryValue(Integer key) {

        return baseMapper.selectOne(new QueryWrapper<Gender>().eq("gender_key",key));
    }
}
